]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shellDBus: Send an activation token for Accelerator(De)Activated
authorSebastian Wick <sebastian.wick@redhat.com>
Tue, 14 Oct 2025 20:36:16 +0000 (22:36 +0200)
committerSebastian Wick <sebastian.wick@redhat.com>
Mon, 17 Nov 2025 21:21:24 +0000 (22:21 +0100)
This will be useful for the global shortcuts portal implementation.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3917>

js/ui/shellDBus.js

index d40d8705e6df1fda4088cdd5016006fde26859fc..17f43e46ea6b1039ad89ec6e1d216143b064aaca 100644 (file)
@@ -286,9 +286,14 @@ export class GnomeShell {
 
         const connection = this._dbusImpl.get_connection();
         const info = this._dbusImpl.get_info();
+
+        const context = global.create_app_launch_context(0, -1);
+        const token = context.get_startup_notify_id(null, []);
+
         const params = {
             'timestamp': GLib.Variant.new('u', timestamp),
             'action-mode': GLib.Variant.new('u', Main.actionMode),
+            'activation-token': GLib.Variant.new('s', token),
         };
 
         const deviceNode = device.get_device_node();